package com.lzy.crm.service;

import java.util.List;

import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.CrowdApplyCriteria;
import com.lzy.crm.domain.CrowdApply;
import com.lzy.crm.domain.PpUser;
import com.lzy.crm.vo.PlayerInfo;

public interface CrowdApplyService extends  BaseService<CrowdApply, CrowdApplyCriteria> {
	
	
	/**
	 *  申请加入群方法
	 * @param crowdId
	 * @param remark
	 */
	public int applyCrowd(int crowdId,String remark,PpUser pUser);
	
	
	/**
	 * 查询群申请信息
	 * @param gameId
	 * @return
	 */
	public List<CrowdApply> getCrowdApplyListByGameId(String gameId);
	
	
	/**
	 * 我的申请信息
	 * @param gameId
	 * @return
	 */
	public List<CrowdApply> getMyCrowdApplyListByGameId(String gameId);
	
	
	/**
	 * 修改申请信息
	 * @param crowdApplyId
	 * @param status
	 * @param remark
	 * @return
	 */
	public int updateCrowdApply(String crowdApplyId,String status,String remark,PpUser puser)throws Exception;
	
	
	/**
	 *  查询群申请的消息数量
	 * @param crowdId
	 * @param remark
	 */
	public int getApplyList(int crowdId ,String stauts);
	
	
}
